package com.start.shop.api.param.order;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;

import com.start.shop.api.vo.order.OrderAddress;
import com.start.shop.modules.repository.entity.User;

import lombok.Data;

@Data
public class OrderMakeParam {
	
	public User user;
	
	@DecimalMin(value = "1", message = "商品编号非法") //大于1的数字
	public int skuId;
	
	@DecimalMin(value = "1", message = "购买商品数量非法") //大于1的数字
	public int num;
	public OrderAddress address;
	public String orderType = "shop"; //订单类型
	
	public int couponId;

}
